package com.emmmya.ocs.common.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 前后端交互数据标准
 */
@Data
@ApiModel("返回结果类")
public class Result<T> implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("成功标识")
    private boolean success;

    @ApiModelProperty("消息")
    private String message;

    @ApiModelProperty("标识码")
    private Integer code;

    @ApiModelProperty("时间戳")
    private long timestamp = System.currentTimeMillis();

    @ApiModelProperty("结果对象")
    private T result;
}
